home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / Ghostscript / src / jpeg-6a / makefile.sas < prev    next >
Makefile  |  1996-02-07  |  12KB  |  245 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Amiga systems using SAS C 6.0 and up.
  4. # Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
  5.  
  6. # Read installation instructions before saying "make" !!
  7.  
  8. # The name of your C compiler:
  9. CC= sc
  10.  
  11. # You may need to adjust these cc options:
  12. # Uncomment the following lines for generic 680x0 version
  13. ARCHFLAGS= cpu=any
  14. SUFFIX=
  15.  
  16. # Uncomment the following lines for 68030-only version
  17. #ARCHFLAGS= cpu=68030
  18. #SUFFIX=.030
  19.  
  20. CFLAGS= nostackcheck data=near parms=register optimize $(ARCHFLAGS) \
  21.     ignore=104 ignore=304 ignore=306
  22. # ignore=104 disables warnings for mismatched const qualifiers
  23. # ignore=304 disables warnings for variables being optimized out
  24. # ignore=306 disables warnings for the inlining of functions
  25. # Generally, we recommend defining any configuration symbols in jconfig.h,
  26. # NOT via define switches here.
  27.  
  28. # Link-time cc options:
  29. LDFLAGS= SC SD ND BATCH
  30.  
  31. # To link any special libraries, add the necessary commands here.
  32. LDLIBS= LIB:scm.lib LIB:sc.lib
  33.  
  34. # Put here the object file name for the correct system-dependent memory
  35. # manager file.  For Amiga we recommend jmemname.o.
  36. SYSDEPMEM= jmemname.o
  37.  
  38. # miscellaneous OS-dependent stuff
  39. # linker
  40. LN= slink
  41. # file deletion command
  42. RM= delete quiet
  43. # library (.lib) file creation command
  44. AR= oml
  45.  
  46. # End of configurable options.
  47.  
  48.  
  49. # source files: JPEG library proper
  50. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  51.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  52.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  53.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  54.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  55.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  56.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  57.         jquant2.c jutils.c jmemmgr.c
  58. # memmgr back ends: compile only one of these into a working library
  59. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  60. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  61. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  62.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  63.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  64. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  65. # files included by source files
  66. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  67.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  68. # documentation, test, and support files
  69. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  70.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  71.         coderules.doc filelist.doc change.log
  72. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  73.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  74.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  75.         makefile.vms makvms.opt
  76. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  77.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  78. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  79. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  80.         testimgp.jpg
  81. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  82.         $(OTHERFILES) $(TESTFILES)
  83. # library object files common to compression and decompression
  84. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  85. # compression library object files
  86. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
  87.         jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
  88.         jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
  89.         jfdctint.o
  90. # decompression library object files
  91. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
  92.         jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
  93.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  94.         jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  95. # These objectfiles are included in libjpeg.lib
  96. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  97. # object files for sample applications (excluding library files)
  98. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  99.         cdjpeg.o
  100. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  101.         cdjpeg.o
  102. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o
  103.  
  104.  
  105. all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
  106.  
  107. libjpeg.lib: $(LIBOBJECTS)
  108.     -$(RM) libjpeg.lib
  109.     $(AR) libjpeg.lib r $(LIBOBJECTS)
  110.  
  111. cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
  112.     $(LN) <WITH <
  113. $(LDFLAGS)
  114. TO cjpeg$(SUFFIX)
  115. FROM LIB:c.o $(COBJECTS)
  116. LIB libjpeg.lib $(LDLIBS)
  117. <
  118.  
  119. djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
  120.     $(LN) <WITH <
  121. $(LDFLAGS)
  122. TO djpeg$(SUFFIX)
  123. FROM LIB:c.o $(DOBJECTS)
  124. LIB libjpeg.lib $(LDLIBS)
  125. <
  126.  
  127. jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
  128.     $(LN) <WITH <
  129. $(LDFLAGS)
  130. TO jpegtran$(SUFFIX)
  131. FROM LIB:c.o $(TROBJECTS)
  132. LIB libjpeg.lib $(LDLIBS)
  133. <
  134.  
  135. rdjpgcom$(SUFFIX): rdjpgcom.o
  136.     $(LN) <WITH <
  137. $(LDFLAGS)
  138. TO rdjpgcom$(SUFFIX)
  139. FROM LIB:c.o rdjpgcom.o
  140. LIB $(LDLIBS)
  141. <
  142.  
  143. wrjpgcom$(SUFFIX): wrjpgcom.o
  144.     $(LN) <WITH <
  145. $(LDFLAGS)
  146. TO wrjpgcom$(SUFFIX)
  147. FROM LIB:c.o wrjpgcom.o
  148. LIB $(LDLIBS)
  149. <
  150.  
  151. jconfig.h: jconfig.doc
  152.     echo You must prepare a system-dependent jconfig.h file.
  153.     echo Please read the installation directions in install.doc.
  154.     exit 1
  155.  
  156. clean:
  157.     -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
  158.     -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
  159.     -$(RM) libjpeg.lib core testout*.*
  160.  
  161. test: cjpeg djpeg jpegtran
  162.     -$(RM) testout*.*
  163.     djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  164.     djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  165.     cjpeg -dct int -outfile testout.jpg  testimg.ppm
  166.     djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  167.     cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  168.     jpegtran -outfile testoutt.jpg testprog.jpg
  169.     cmp testimg.ppm testout.ppm
  170.     cmp testimg.gif testout.gif
  171.     cmp testimg.jpg testout.jpg
  172.     cmp testimg.ppm testoutp.ppm
  173.     cmp testimgp.jpg testoutp.jpg
  174.     cmp testorig.jpg testoutt.jpg
  175.  
  176.  
  177. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  182. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  183. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  190. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  195. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  196. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  197. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  198. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  199. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  200. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  201. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  202. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  203. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  206. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  207. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  208. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  209. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  210. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  211. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  212. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  213. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  214. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  215. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  216. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  217. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  218. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  219. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  220. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  221. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  222. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  223. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  224. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  225. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  226. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  227. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  228. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  229. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  230. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  231. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  232. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  233. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  234. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  235. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  236. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  237. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  238. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  239. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  240. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  241. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  242. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  243. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  244. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  245.